//
//  VTUplinkTask.m
//  vTeam
//
//  Created by zhang hailong on 13-5-2.
//  Copyright (c) 2013年 hailong.org. All rights reserved.
//

#import "VTUplinkTask.h"
#import <objc/runtime.h>

@implementation VTUplinkTask
{
    Class _originalClass;
}
@synthesize delegate = _delegate;

- (void)setDelegate:(id)delegate
{
    _delegate = delegate;
    _originalClass = object_getClass(_delegate);
}

- (id)delegate
{
    Class currentClass = object_getClass(_delegate);
    if (currentClass == _originalClass) {
        return _delegate;
    }else{
        return nil;
    }
}



@end
